QT += widgets multimediawidgets svg

TEMPLATE = lib
DEFINES += QT_DLL
DEFINES += JWWS_LIBRARY
DEFINES += WAVE_FORMAT_PCM
DEFINES += _CRT_SECURE_NO_WARNINGS _RUSSIAN

QMAKE_CFLAGS += -fpermissive
QMAKE_CXXFLAGS += -fpermissive

CONFIG += c++17

DESTDIR = ../LIBS

INCLUDEPATH += ../JWTS

# Additional library paths
LIBS += -L../LIBS

# Libraries your project depends on
LIBS += -lJWTS -lJD3D

win32 {
    LIBS += -lAdvapi32
}


# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    ABOUT.CPP \
    ATTSDLG.CPP \
    BMPWIN.CPP \
    BUTTON.CPP \
    BmpChild.cpp \
    COLORDLG.CPP \
    CONTEXT.CPP \
    ContextDialog.cpp \
    DUMWIN.CPP \
    DYNWIN.CPP \
    FINDSTRING.CPP \
    FONT.CPP \
    FONTLIST.CPP \
    FONTLOAD.CPP \
    FONTS.CPP \
    GRIDDLG.CPP \
    GridDialog.cpp \
    JHSFIND.CPP \
    MSGWIN.CPP \
    OBJDLG.cpp \
    OFFOBJ.CPP \
    POLYDLG.CPP \
    SPEED.CPP \
    STATUS.CPP \
    STATUS_R.CPP \
    SYMDLG.CPP \
    SYSINFO.CPP \
    SvgChild.cpp \
    TCIBUFF.CPP \
    TCICONT.CPP \
    TCIChild.cpp \
    TCIEDIT.CPP \
    TCIFILE.CPP \
    TCIFONT.CPP \
    TCILINE.CPP \
    TCIMSG.CPP \
    TCISCROL.CPP \
    TCIWIN.CPP \
    TCIWINDO.CPP \
    TEXTDLG.CPP \
    TRACE.CPP \
    TRACEDLG.CPP \
    VideoChild.cpp \
    WINOBJ.CPP \
    WINOBJSY.CPP \
    WMFWIN.CPP

HEADERS += \
    INCLUDE/BmpChild.h \
    INCLUDE/GridDialog.h \
    INCLUDE/ContextDialog.h \
    INCLUDE/ABOUT.HPP \
    INCLUDE/ATTSDLG.HPP \
    INCLUDE/BMPWIN.HPP \
    INCLUDE/BUTTON.HPP \
    INCLUDE/COLORDLG.HPP \
    INCLUDE/CONTEXT.HPP \
    INCLUDE/DUMWIN.HPP \
    INCLUDE/DYNWIN.HPP \
    INCLUDE/FONT.HPP \
    INCLUDE/FONTLIST.HPP \
    INCLUDE/FONTLOAD.HPP \
    INCLUDE/FONTS.HPP \
    INCLUDE/GRIDDLG.HPP \
    INCLUDE/JWWS.HPP \
    INCLUDE/JWWS_global.h \
    INCLUDE/MSGWIN.HPP \
    INCLUDE/OBJDLG.HPP \
    INCLUDE/OBJDLGDEF.HPP \
    INCLUDE/OFFOBJ.HPP \
    INCLUDE/RESOURCE.H \
    INCLUDE/SPEED.HPP \
    INCLUDE/STATUS.HPP \
    INCLUDE/STATUS_R.HPP \
    INCLUDE/SYMDLG.HPP \
    INCLUDE/SYSINFO.HPP \
    INCLUDE/SvgChild.h \
    INCLUDE/TCIBUFF.HPP \
    INCLUDE/TCICONT.HPP \
    INCLUDE/TCIChild.h \
    INCLUDE/TCIEDIT.HPP \
    INCLUDE/TCIEDITDEF.HPP \
    INCLUDE/TCIFILE.HPP \
    INCLUDE/TCIFONT.HPP \
    INCLUDE/TCILINE.HPP \
    INCLUDE/TCIMSG.HPP \
    INCLUDE/TCIWIN.HPP \
    INCLUDE/TCIWINDO.HPP \
    INCLUDE/TRACE.HPP \
    INCLUDE/TRACEDLG.HPP \
    INCLUDE/VideoChild.h \
    INCLUDE/WINOBJ.HPP \
    INCLUDE/WMFWIN.HPP \
    JWTC.RC \
    JWWS.RC


# Default rules for deployment.
unix {
    target.path = /usr/lib
}
!isEmpty(target.path): INSTALLS += target

FORMS += \
    ContextDialog.ui \
    GridDialog.ui
